package tg.app.rj.aqprorep;

import java.rmi.RemoteException;
import java.util.Vector;
import psdi.mbo.Mbo;
import psdi.mbo.MboRemote;
import psdi.mbo.MboSet;
import psdi.util.MXException;

/***
 * 
 * @author pzx
 *
 */
public class AqprorepStatus extends Mbo implements MboRemote {
	private static final long serialVersionUID = -4084743866618232298L;

	public  AqprorepStatus(MboSet mboset) throws MXException, RemoteException {
		super(mboset);
	}

	public void init() throws MXException {
		setFlag(7L, true);
		super.init();
	}

	public void add() throws MXException, RemoteException {
		MboRemote mboremote = getOwner();
		if (mboremote != null) {
			setValue("AQPROREPID", mboremote.getString("AQPROREPID"), 2L);
			setValue("STATUS", mboremote.getString("STATUS"), 2L);
			setValue("changedate", mboremote.getDate("statusdate"), 2L);
			setValue("changeby", mboremote.getUserInfo().getPersonId(), 3L);
			setValue("siteid", mboremote.getString("siteid"), 2L);
			setValue("orgid", mboremote.getString("orgid"), 2L);
		}
	}
}